package com.consumer;

public class TestApp {

    public static void main(String[] args) {

        String s = "/1767407798956437504/里程碑/巫山安康医院调研计划表.xlsx";

        int i = s.lastIndexOf("/");
        String substring = s.substring(0, i + 1);
        System.out.println(substring);


    }
}
